package com.hk.service.sys;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.Duties;

public interface IDuties {

	/** 根据id获实体 */
	public Duties findById(Long id);

	/** 添加 **/
	public Long add(Duties model);

	/** 新增模块，如果模块已存在则更新 */
	public void update(Duties duties);

	/** 删除 */
	public Duties delete(Long id);

	/** 分页获取 */
	public List<Duties> find(int pageNum, int pageSize);

	public List<Duties> findByFilter(HqlFilter hqlFilter);

	public List<Duties> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public Long countByFilter(HqlFilter hqlFilter);
}
